<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateFinancialNewsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('financial_news', function (Blueprint $table) {
            $table->increments('id');
            $table->string('title')->default('')->comment('标题');
            $table->string('description')->nullable()->comment('简介');
            $table->string('source')->nullable()->comment('来源');
            $table->string('author')->nullable()->comment('作者');
            $table->text('content')->comment('内容');
            $table->dateTime('release_time')->comment('发布时间');
            $table->string('tag')->nullable()->comment('标签');
            $table->integer('order')->default('1')->comment('排序');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('financial_news');
    }
}
